<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .con {
            width: 1200px;
            margin: 0 auto;
            height: 600px;
            border: 1px solid green;
        }

        ul {
            list-style: none;
            /* width: 1000px; */
            width: 100%;
            height: 400px;
            border: 1px solid rebeccapurple;
            margin: 0 auto;
            display: flex;
            flex-wrap: nowrap;
            overflow: auto;
            flex-direction: row;

        }

        li {
            /* display: flex; */
            display: inline-block;
            flex: 1;
            width: 600px;
            height: 800px;
            border: 1px solid red;
            margin-right: 10px;
            background-color: pink;
        }
    </style>
</head>

<body>

    <div class="con">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
    </div>
    <script>
        var arr = [20, 30, 24, 0];
        var newarry = arr.filter(el => {
            return el >= 20
        })
        console.log(newarry)
        var arr = [1, 2, 4, 5, 6, 9, 10, 15];

        var newarr = arr.filter(el => {
            return el % 2 !== 0
        })
        console.log(newarr)
    </script>

</body>

</html>